home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / games_d / gnuchess.zip / TURBMAKE < prev    next >
Text File  |  1990-07-20  |  3KB  |  97 lines

  1. # makefile.dos -  Makefile for CHESS (MS-DOS Version)
  2. # Copyright (C) 1990 by Thorsten Ohl, td12@ddagsi3.bitnet
  3. # Copyright (C) 1986, 1987, 1988, 1989, 1990 Free Software Foundation, Inc.
  4. #
  5. # This makefile will NOT work with Microsoft's make.
  6. # Use a **IX compatible make instead.
  7. #
  8. # This file is not yet part of CHESS.
  9. #
  10. # CHESS is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY.  No author or distributor
  12. # accepts responsibility to anyone for the consequences of using it
  13. # or for whether it serves any particular purpose or works at all,
  14. # unless he says so in writing.  Refer to the CHESS General Public
  15. # License for full details.
  16. #
  17. # Everyone is granted permission to copy, modify and redistribute
  18. # CHESS, but only under the conditions described in the
  19. # CHESS General Public License.   A copy of this license is
  20. # supposed to have been given to you along with CHESS so you
  21. # can know your rights and responsibilities.  It should be in a
  22. # file named COPYING.  Among other things, the copyright notice
  23. # and this notice must be preserved on all copies.
  24.  
  25. # gnuchess  will be the curses-based chess.
  26. # gnuchessn will be the fancy-display-curses-based chess.
  27. # gnuchessr will be the xchess/chesstool based chess.
  28. #               (/usr/games/chesstool gnuchessr)
  29. #    for use with SUN's chesstool and X-window's xchess.
  30. #    To use with latter, add -DCHESSTOOL to the nondsp.o
  31. #    compilation lines (e.g. cc -O -DCHESSTOOL ...)
  32. # If you want to use the persistent transpositon table add
  33. # -DHASHFILE=\"$(LIBDIR)/gnuchess.hash\"
  34. # to the gnuchess.o compilation line. You also have to run gnuchess -t
  35. # To actually create the file. -t can also be used to report
  36. # statistics about the file or to resize it.
  37.  
  38. # if you don't want the IBM PC's graphic characters, add -DSEVENBIT
  39. CC      =cl
  40. BINDIR  =.
  41. LIBDIR  =.
  42. HASH    =-DHASHFILE=\"$(LIBDIR)/gnuchess.has\"
  43. BOOK    =-DBOOK=\"$(LIBDIR)/gnuchess.boo\"
  44. CFLAGS  = -AC -Oita -Gs -G2 -W3 -DNOMEMSET -DMSDOS
  45.  
  46. # The `-Ol' flag (enable loop optimization) is not recommended:
  47. # gnuchess.c(430) : fatal error C1001: Internal Compiler Error
  48. #                 (compiler file '@(#)ctypes.c:1.107', line 474)
  49. #                 Contact Microsoft Technical Support
  50.  
  51. sources = gnuchess.c gnuchess.d gnuchess.h uxdsp.c nuxdsp.c nondsp.c version.h
  52.  
  53. # Commands
  54. all: gnuchess.exe gnuchesr.exe gnucheso.exe
  55.  
  56. gnuchess.exe: gnuchess.obj nuxdsp.obj
  57.         $(CC) gnuchess.obj nuxdsp.obj -o gnuchess.exe -link /e /st:0x9000
  58.  
  59. gnuchesr.exe: gnuchess.obj nondsp.obj
  60.         $(CC) gnuchess.obj nondsp.obj -o gnuchesr.exe -link /e /st:0x9000
  61.  
  62. gnucheso.exe: gnuchess.obj uxdsp.obj
  63.         $(CC) gnuchess.obj uxdsp.obj -o gnucheso.exe -link /e /st:0x9000
  64.  
  65. gnuchess.obj: gnuchess.c gnuchess.h
  66.         $(CC) $(CFLAGS) $(HASH) $(BOOK) -c gnuchess.c
  67.  
  68. uxdsp.obj: uxdsp.c gnuchess.h
  69.         $(CC) $(CFLAGS) -c uxdsp.c
  70.  
  71. nuxdsp.obj: nuxdsp.c gnuchess.h
  72.         $(CC) $(CFLAGS) -c nuxdsp.c
  73.  
  74. nondsp.obj: nondsp.c gnuchess.h
  75.         $(CC) $(CFLAGS) -c nondsp.c
  76.  
  77. # Utilities
  78.  
  79. install:
  80.         cp gnuchess.exe $(BINDIR)/gnuchess.exe
  81.         cp gnuchess.boo $(LIBDIR)/gnuchess.boo
  82.  
  83. clean:
  84.         del *.obj
  85.         del *.exe
  86.  
  87. tags: $(sources)
  88.         etags -t $(sources)
  89.  
  90. zip:
  91.         pkzip -fpr chess-30
  92.  
  93. disk:
  94.         copy chess-30.zip b: /v
  95.         pkunzip -t b:chess-30 | grep -vw OK
  96.  
  97.